
package com.week1.day05;

public class Cat {
    String breed;
    int color;
    int age;
    String name;
    String sex;
    int happy;
    double weight;

    public Cat() {
    }

    public Cat(String name) {
        this.name = name;
    }

    public Cat(String breed, int color, int age, String name, String sex, int happy, double weight) {
        this.breed = breed;
        this.color = color;
        this.age = age;
        this.name = name;
        this.sex = sex;
        this.happy = happy;
        this.weight = weight;
    }

    public void eat() {
        weight += 0.2;
        happy += 10;
        System.out.println(name + "大吃一顿，体重上涨0.2:" + weight + ",心情值上涨10:" + happy);
    }

    public void sleep() {
        System.out.println(name + "正在呼呼睡");
    }

    public void catchFish() {
        System.out.println(name + "正在抓鱼");
    }

    public void backflip() {
        System.out.println(name + "做了一个后空翻");
    }

    public void bubbleSort() {
        System.out.println("冒泡排序");
    }
}
